package com.sky.user;

import com.sky.common.config.JwtProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
@EnableConfigurationProperties(JwtProperties.class)
public class UserServerApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(UserServerApplication.class, args);
        String []names = run.getBeanDefinitionNames();
        for (String name : names) {
            System.out.println(name);
        }
        log.info("server started");
    }
}
